package com.dormitory123.millet.service.Impl;

import com.dormitory123.millet.dao.BaseDao;
import com.dormitory123.millet.dao.Impl.PhoneDaoImpl;
import com.dormitory123.millet.dao.PhoneDao;
import com.dormitory123.millet.pojo.Phone;
import com.dormitory123.millet.service.PhoneService;

import java.util.List;

/**
 * @author yanhuanzhan
 * @date 2022/1/4 - 17:19
 */
public class PhoneServiceImpl extends BaseDao implements PhoneService {
    private PhoneDao phoneDao = new PhoneDaoImpl();
    @Override
    public List<Phone> list() {
        return phoneDao.list();
    }

    @Override
    public List<Phone> queryPhonesByType(String type) {
        return phoneDao.queryPhonesByType(type);
    }

    @Override
    public Phone queryPhoneById(Integer id) {
        return phoneDao.queryPhoneById(id);
    }
}
